home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / VideoToolbox 4.95.sit / VideoToolbox / VideoToolboxSources / SetMouse.c < prev    next >
MacBinary  |  1994-10-18  |  2.6 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Oct 18 20:37:45 1994, modified Tue Oct 18 20:37:45 1994, creator 'MMCC', type ASCII, 1963 bytes "SetMouse.c" , at 0x82b 418 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 53 65 74 4d 6f 75 | 73 65 2e 63 00 00 00 00 |..SetMou|se.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 07 ab 00 | 00 01 a2 aa ca 1a d9 aa |........|........|
|00000060| ca 1a d9 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 0c 0f 00 00 |........|........|
|00000080| 2f 2a 0d 53 65 74 4d 6f | 75 73 65 2e 63 0d 0d 53 |/*.SetMo|use.c..S|
|00000090| 65 74 73 20 74 68 65 20 | 6d 6f 75 73 65 20 6c 6f |ets the |mouse lo|
|000000a0| 63 61 74 69 6f 6e 20 74 | 6f 20 74 68 65 20 67 69 |cation t|o the gi|
|000000b0| 76 65 6e 20 70 6f 69 6e | 74 2c 20 77 68 69 63 68 |ven poin|t, which|
|000000c0| 20 69 73 20 73 70 65 63 | 69 66 69 65 64 20 69 6e | is spec|ified in|
|000000d0| 20 74 68 65 20 6c 6f 63 | 61 6c 0d 63 6f 6f 72 64 | the loc|al.coord|
|000000e0| 69 6e 61 74 65 20 73 79 | 73 74 65 6d 20 6f 66 20 |inate sy|stem of |
|000000f0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 70 6f 72 74 |the curr|ent port|
|00000100| 2e 0d 0d 57 41 52 4e 49 | 4e 47 3a 20 49 6e 20 74 |...WARNI|NG: In t|
|00000110| 68 65 20 51 20 26 20 41 | 20 53 74 61 63 6b 2c 20 |he Q & A| Stack, |
|00000120| 41 70 70 6c 65 20 74 65 | 6c 6c 73 20 79 6f 75 20 |Apple te|lls you |
|00000130| 68 6f 77 20 74 6f 20 64 | 6f 20 74 68 69 73 2c 20 |how to d|o this, |
|00000140| 62 75 74 20 77 61 72 6e | 73 20 74 68 61 74 20 74 |but warn|s that t|
|00000150| 68 65 0d 74 65 63 68 6e | 69 71 75 65 20 75 73 65 |he.techn|ique use|
|00000160| 73 20 75 6e 64 6f 63 75 | 6d 65 6e 74 65 64 20 6c |s undocu|mented l|
|00000170| 6f 77 2d 6d 65 6d 6f 72 | 79 20 6c 6f 63 61 74 69 |ow-memor|y locati|
|00000180| 6f 6e 73 20 74 68 61 74 | 20 61 72 65 20 63 6f 6e |ons that| are con|
|00000190| 73 69 64 65 72 65 64 20 | 75 6e 73 75 70 70 6f 72 |sidered |unsuppor|
|000001a0| 74 65 64 0d 61 6e 64 20 | 76 6f 6c 61 74 69 6c 65 |ted.and |volatile|
|000001b0| 20 61 6e 64 20 6d 61 79 | 20 63 68 61 6e 67 65 20 | and may| change |
|000001c0| 69 6e 20 66 75 74 75 72 | 65 20 43 50 55 73 2e 0d |in futur|e CPUs..|
|000001d0| 0d 57 41 52 4e 49 4e 47 | 3a 20 54 68 69 73 20 6d |.WARNING|: This m|
|000001e0| 61 79 20 6e 6f 74 20 77 | 6f 72 6b 20 61 73 20 6e |ay not w|ork as n|
|000001f0| 61 74 69 76 65 20 63 6f | 64 65 20 6f 6e 20 74 68 |ative co|de on th|
|00000200| 65 20 50 6f 77 65 72 50 | 43 2e 20 54 68 65 6e 20 |e PowerP|C. Then |
|00000210| 61 67 61 69 6e 2c 20 69 | 74 20 6d 69 67 68 74 2e |again, i|t might.|
|00000220| 0d 0d 57 41 52 4e 49 4e | 47 3a 20 41 63 63 6f 72 |..WARNIN|G: Accor|
|00000230| 64 69 6e 67 20 74 6f 20 | 61 20 6e 6f 74 65 20 66 |ding to |a note f|
|00000240| 72 6f 6d 20 41 70 70 6c | 65 2c 20 74 68 69 73 20 |rom Appl|e, this |
|00000250| 6d 61 79 20 6e 6f 74 20 | 77 6f 72 6b 20 6f 6e 20 |may not |work on |
|00000260| 73 6f 6d 65 20 6e 65 77 | 65 72 20 36 38 30 78 30 |some new|er 680x0|
|00000270| 20 4d 61 63 73 2c 0d 65 | 2e 67 2e 20 74 68 65 20 | Macs,.e|.g. the |
|00000280| 43 65 6e 74 72 69 73 2e | 20 54 68 65 79 27 76 65 |Centris.| They've|
|00000290| 20 69 73 73 75 65 64 20 | 70 72 65 6c 69 6d 69 6e | issued |prelimin|
|000002a0| 61 72 79 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |ary docu|mentatio|
|000002b0| 6e 20 6f 66 20 61 20 43 | 75 72 73 6f 72 20 44 65 |n of a C|ursor De|
|000002c0| 76 69 63 65 20 4d 61 6e | 61 67 65 72 0d 74 68 61 |vice Man|ager.tha|
|000002d0| 74 20 65 76 65 6e 74 75 | 61 6c 6c 79 20 77 69 6c |t eventu|ally wil|
|000002e0| 6c 20 73 75 70 70 6f 72 | 74 20 61 6c 6c 20 4d 61 |l suppor|t all Ma|
|000002f0| 63 73 2e 20 53 65 65 20 | 4d 6f 76 65 4d 6f 75 73 |cs. See |MoveMous|
|00000300| 65 2e 63 20 69 6e 20 56 | 69 64 65 6f 54 6f 6f 6c |e.c in V|ideoTool|
|00000310| 62 6f 78 53 6f 75 72 63 | 65 73 2e 0d 0d 46 72 6f |boxSourc|es...Fro|
|00000320| 6d 20 22 43 6f 64 65 20 | 67 61 64 67 65 74 73 3a |m "Code |gadgets:|
|00000330| 20 53 65 74 74 69 6e 67 | 20 74 68 65 20 6d 6f 75 | Setting| the mou|
|00000340| 73 65 20 6c 6f 63 61 74 | 69 6f 6e 22 2c 20 54 48 |se locat|ion", TH|
|00000350| 49 4e 4b 69 6e 27 20 43 | 61 50 2c 20 31 28 32 29 |INKin' C|aP, 1(2)|
|00000360| 3a 32 38 2d 32 39 2c 20 | 46 61 6c 6c 20 31 39 39 |:28-29, |Fall 199|
|00000370| 30 2e 0d 0d 43 6f 70 79 | 72 69 67 68 74 20 a9 20 |0...Copy|right . |
|00000380| 31 39 39 31 20 53 50 4c | 41 73 68 20 52 65 73 6f |1991 SPL|Ash Reso|
|00000390| 75 72 63 65 73 2e 20 41 | 6c 6c 20 72 69 67 68 74 |urces. A|ll right|
|000003a0| 73 20 72 65 73 65 72 76 | 65 64 2e 20 54 68 69 73 |s reserv|ed. This|
|000003b0| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 20 69 73 0d | source |code is.|
|000003c0| 63 6f 70 79 72 69 67 68 | 74 65 64 2c 20 62 75 74 |copyrigh|ted, but|
|000003d0| 20 66 72 65 65 2e 20 54 | 68 69 73 20 6d 65 61 6e | free. T|his mean|
|000003e0| 73 20 74 68 61 74 20 70 | 72 6f 67 72 61 6d 6d 65 |s that p|rogramme|
|000003f0| 72 73 20 6d 61 79 20 75 | 73 65 20 74 68 65 20 63 |rs may u|se the c|
|00000400| 6f 64 65 20 61 6e 64 0d | 69 6e 63 6f 72 70 6f 72 |ode and.|incorpor|
|00000410| 61 74 65 20 69 74 20 69 | 6e 74 6f 20 74 68 65 69 |ate it i|nto thei|
|00000420| 72 20 6f 77 6e 20 70 72 | 6f 67 72 61 6d 73 20 28 |r own pr|ograms (|
|00000430| 63 6f 6d 6d 65 72 63 69 | 61 6c 20 6f 72 20 6f 74 |commerci|al or ot|
|00000440| 68 65 72 77 69 73 65 29 | 20 77 69 74 68 6f 75 74 |herwise)| without|
|00000450| 20 70 61 79 6d 65 6e 74 | 0d 6f 66 20 61 6e 79 20 | payment|.of any |
|00000460| 66 65 65 73 2e 20 48 6f | 77 65 76 65 72 2c 20 74 |fees. Ho|wever, t|
|00000470| 68 65 20 73 6f 75 72 63 | 65 20 63 6f 64 65 20 69 |he sourc|e code i|
|00000480| 74 73 65 6c 66 20 6d 61 | 79 20 6e 6f 74 20 62 65 |tself ma|y not be|
|00000490| 20 73 6f 6c 64 20 6f 72 | 20 64 69 73 74 72 69 62 | sold or| distrib|
|000004a0| 75 74 65 64 20 6f 6e 0d | 65 6c 65 63 74 72 6f 6e |uted on.|electron|
|000004b0| 69 63 20 62 75 6c 6c 65 | 74 69 6e 20 62 6f 61 72 |ic bulle|tin boar|
|000004c0| 64 20 73 65 72 76 69 63 | 65 73 20 77 69 74 68 6f |d servic|es witho|
|000004d0| 75 74 20 77 72 69 74 74 | 65 6e 20 70 65 72 6d 69 |ut writt|en permi|
|000004e0| 73 73 69 6f 6e 20 66 72 | 6f 6d 20 53 50 4c 41 73 |ssion fr|om SPLAs|
|000004f0| 68 0d 52 65 73 6f 75 72 | 63 65 73 2e 0d 0d 53 50 |h.Resour|ces...SP|
|00000500| 4c 41 73 68 20 52 65 73 | 6f 75 72 63 65 73 0d 31 |LAsh Res|ources.1|
|00000510| 36 37 38 20 53 68 61 74 | 74 75 63 6b 20 41 76 65 |678 Shat|tuck Ave|
|00000520| 20 23 33 30 32 0d 42 65 | 72 6b 65 6c 65 79 2c 20 | #302.Be|rkeley, |
|00000530| 43 41 20 20 39 34 37 30 | 39 0d 28 34 31 35 29 20 |CA 9470|9.(415) |
|00000540| 35 32 37 2d 30 31 32 32 | 0d 0d 48 49 53 54 4f 52 |527-0122|..HISTOR|
|00000550| 59 3a 0d 32 2f 32 35 2f | 39 31 20 64 67 70 20 61 |Y:.2/25/|91 dgp a|
|00000560| 64 64 65 64 20 74 6f 20 | 56 69 64 65 6f 54 6f 6f |dded to |VideoToo|
|00000570| 6c 62 6f 78 0d 38 2f 32 | 34 2f 39 31 09 64 67 70 |lbox.8/2|4/91.dgp|
|00000580| 09 4d 61 64 65 20 63 6f | 6d 70 61 74 69 62 6c 65 |.Made co|mpatible|
|00000590| 20 77 69 74 68 20 54 48 | 49 4e 4b 20 43 20 35 2e | with TH|INK C 5.|
|000005a0| 30 2e 0d 35 2f 32 38 2f | 39 34 20 64 67 70 20 45 |0..5/28/|94 dgp E|
|000005b0| 6c 69 6d 69 6e 61 74 65 | 64 20 75 73 65 20 6f 66 |liminate|d use of|
|000005c0| 20 53 79 73 45 71 75 2e | 68 2c 20 66 6f 72 20 63 | SysEqu.|h, for c|
|000005d0| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 77 69 74 |ompatibi|lity wit|
|000005e0| 68 20 41 70 70 6c 65 27 | 73 20 55 6e 69 76 65 72 |h Apple'|s Univer|
|000005f0| 73 61 6c 20 48 65 61 64 | 65 72 73 2e 0d 2a 2f 0d |sal Head|ers..*/.|
|00000600| 23 69 6e 63 6c 75 64 65 | 20 22 56 69 64 65 6f 54 |#include| "VideoT|
|00000610| 6f 6f 6c 62 6f 78 2e 68 | 22 0d 0d 76 6f 6c 61 74 |oolbox.h|"..volat|
|00000620| 69 6c 65 20 50 6f 69 6e | 74 20 4d 54 65 6d 70 20 |ile Poin|t MTemp |
|00000630| 3a 20 30 78 38 32 38 3b | 09 09 2f 2a 20 4c 6f 77 |: 0x828;|../* Low|
|00000640| 20 6d 65 6d 6f 72 79 20 | 67 6c 6f 62 61 6c 73 20 | memory |globals |
|00000650| 2a 2f 0d 76 6f 6c 61 74 | 69 6c 65 20 50 6f 69 6e |*/.volat|ile Poin|
|00000660| 74 20 52 61 77 4d 6f 75 | 73 65 20 3a 20 30 78 38 |t RawMou|se : 0x8|
|00000670| 32 43 3b 0d 76 6f 6c 61 | 74 69 6c 65 20 42 79 74 |2C;.vola|tile Byt|
|00000680| 65 20 43 72 73 72 4e 65 | 77 20 3a 20 30 78 38 43 |e CrsrNe|w : 0x8C|
|00000690| 45 3b 0d 76 6f 6c 61 74 | 69 6c 65 20 42 79 74 65 |E;.volat|ile Byte|
|000006a0| 20 43 72 73 72 43 6f 75 | 70 6c 65 20 3a 20 30 78 | CrsrCou|ple : 0x|
|000006b0| 38 43 46 3b 0d 0d 76 6f | 69 64 20 53 65 74 4d 6f |8CF;..vo|id SetMo|
|000006c0| 75 73 65 28 50 6f 69 6e | 74 09 77 68 65 72 65 29 |use(Poin|t.where)|
|000006d0| 0d 7b 0d 0d 09 4c 6f 63 | 61 6c 54 6f 47 6c 6f 62 |.{...Loc|alToGlob|
|000006e0| 61 6c 28 26 77 68 65 72 | 65 29 3b 09 09 2f 2a 20 |al(&wher|e);../* |
|000006f0| 43 6f 6e 76 65 72 74 20 | 70 6f 69 6e 74 20 74 6f |Convert |point to|
|00000700| 20 67 6c 6f 62 61 6c 20 | 63 6f 6f 72 64 69 6e 61 | global |coordina|
|00000710| 74 65 73 09 2a 2f 0d 09 | 0d 09 2f 2a 20 51 75 6f |tes.*/..|../* Quo|
|00000720| 74 69 6e 67 20 66 72 6f | 6d 20 74 68 65 20 51 20 |ting fro|m the Q |
|00000730| 26 20 41 20 53 74 61 63 | 6b 3a 20 22 49 66 20 79 |& A Stac|k: "If y|
|00000740| 6f 75 20 77 69 73 68 20 | 74 6f 20 70 6c 61 63 65 |ou wish |to place|
|00000750| 20 74 68 65 20 63 75 72 | 73 6f 72 20 69 6e 20 61 | the cur|sor in a|
|00000760| 6e 09 2a 2f 0d 09 2f 2a | 20 61 62 73 6f 6c 75 74 |n.*/../*| absolut|
|00000770| 65 20 6c 6f 63 61 74 69 | 6f 6e 20 6f 6e 20 74 68 |e locati|on on th|
|00000780| 65 20 73 63 72 65 65 6e | 2c 20 79 6f 75 20 6d 75 |e screen|, you mu|
|00000790| 73 74 20 73 65 74 20 52 | 61 77 4d 6f 75 73 65 2c |st set R|awMouse,|
|000007a0| 20 61 6e 64 20 4d 54 65 | 6d 70 20 74 6f 09 2a 2f | and MTe|mp to.*/|
|000007b0| 0d 09 2f 2a 20 74 68 65 | 20 73 61 6d 65 20 76 61 |../* the| same va|
|000007c0| 6c 75 65 2c 20 61 6e 64 | 20 73 65 74 20 43 72 73 |lue, and| set Crs|
|000007d0| 72 4e 65 77 20 74 6f 20 | 74 68 65 20 73 61 6d 65 |rNew to |the same|
|000007e0| 20 76 61 6c 75 65 20 61 | 73 20 43 72 73 72 43 6f | value a|s CrsrCo|
|000007f0| 75 70 6c 65 2e 22 09 2a | 2f 0d 09 09 0d 09 4d 54 |uple.".*|/.....MT|
|00000800| 65 6d 70 3d 52 61 77 4d | 6f 75 73 65 3d 77 68 65 |emp=RawM|ouse=whe|
|00000810| 72 65 3b 0d 09 43 72 73 | 72 4e 65 77 3d 43 72 73 |re;..Crs|rNew=Crs|
|00000820| 72 43 6f 75 70 6c 65 3b | 0d 7d 0d 00 00 00 00 00 |rCouple;|.}......|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 01 00 00 00 01 64 | 00 00 00 64 00 00 00 3e |.......d|...d...>|
|00000890| 15 a7 20 9e f2 e1 c8 f9 | b9 18 87 23 1e 74 5c f2 |.. .....|...#.t\.|
|000008a0| fa 61 92 3e 40 f3 d9 3a | 66 fc 7e 33 7f 6a ce 8a |.a.>@..:|f.~3.j..|
|000008b0| 0a 53 65 74 4d 6f 75 73 | 65 2e 63 00 02 00 00 00 |.SetMous|e.c.....|
|000008c0| 50 61 72 74 53 49 54 21 | 00 00 00 00 00 00 00 00 |PartSIT!|........|
|000008d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 ab bf ee 6e 00 00 | 00 00 00 00 01 a2 6c 4c |.....n..|......lL|
|00000900| 29 7d 2e 5d 69 5b 64 e2 | 25 88 08 07 a9 b1 45 96 |)}.]i[d.|%.....E.|
|00000910| a8 95 3d bc a3 7c 44 46 | 87 0a 63 58 b8 93 c9 c2 |..=..|DF|..cX....|
|00000920| f4 57 a5 7a 2a df b9 7e | fe d7 29 a5 31 1e da 3c |.W.z*..~|..).1..<|
|00000930| d3 5c 36 9e d9 27 b4 9d | 37 42 8b 5a 11 6f 7e b4 |.\6..'..|7B.Z.o~.|
|00000940| aa 81 e9 f6 3c 44 cf b0 | b3 a1 bc 79 01 49 db 57 |....<D..|...y.I.W|
|00000950| 3b 5d b0 e0 ed af 88 51 | f3 89 93 f9 8a 92 d8 9d |;].....Q|........|
|00000960| cb b9 9d a6 d1 22 3f 7a | ab ca da 23 71 6b f0 fd |....."?z|...#qk..|
|00000970| 0a 78 1b 07 a7 7c 3f 3f | b0 c5 ae 44 87 97 82 ed |.x...|??|...D....|
|00000980| 00 00 00 14 00 01 00 00 | 06 12 00 00 06 1a 09 53 |........|.......S|
|00000990| 65 74 4d 6f 75 73 65 00 | 00 00 00 48 00 09 4d 6f |etMouse.|...H..Mo|
|000009a0| 6e 61 63 6f 00 00 00 00 | 00 00 00 00 00 00 00 00 |naco....|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 06 |........|........|
|000009c0| 00 04 00 2a 00 03 01 8d | 02 7d 00 34 00 3c 01 83 |...*....|.}.4.<..|
|000009d0| 02 7b aa c9 d4 ad 00 00 | 02 95 00 00 02 95 00 00 |.{......|........|
|000009e0| 00 00 00 00 00 00 01 00 | 00 00 01 64 00 00 00 64 |........|...d...d|
|000009f0| 00 00 00 3e 00 aa 5a 84 | 1e da 00 00 00 1c 00 3e |...>..Z.|.......>|
|00000a00| 00 00 4d 50 53 52 00 01 | 00 0a 03 ef ff ff 00 00 |..MPSR..|........|
|00000a10| 00 00 00 00 00 00 03 ed | ff ff 00 00 00 18 00 aa |........|........|
|00000a20| 59 84 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |Y.......|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+